package com.chinasofti.project.web.common;

import java.util.Date;

import org.springframework.format.datetime.DateFormatter;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;

public class ControllerBase {

	@InitBinder
	public void initBinding(WebDataBinder wdb) {
		wdb.addCustomFormatter(new DateFormatter("yyyy-MM-dd HH:mm:ss"), Date.class);
	}

}
